var express = require('express');
var router = express.Router();

/* GET home page. */
//接收请求
router.post('/login', (req, res) => {
  res.send('1')
  //接收用户名密码
  let { username, password } = req.body
  console.log(username,password)
  //数据库查询
})


// router.get('/login', function(req, res, next) {
//   res.render('index', { title: 'Express' });
// });

module.exports = router;
